package com.zjs.jsp.ediorder.service.mongodb;

import com.zjs.jsp.ediorder.domain.mongodb.jsp_Status;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class Jsp_StatusRepository
{

    @Autowired
    private MongoTemplate mongoTemplate;


    public List<jsp_Status> findByPartner_order_code(List<String> i) {
        return mongoTemplate.find(new Query(Criteria.where("poc").in(i)), jsp_Status.class);
    }

}
